
#include "OgreBox.h"

OgreBox::OgreBox(SceneNode * no, b2Body * bo) {
	node = no;
	body = bo;
}


void OgreBox::update() {
	
	node->setPosition(body->GetPosition().x, body->GetPosition().y, node->getPosition().z);
	node->roll( Radian (body->GetAngle()) - node->getOrientation().getRoll());
}



